import Vue from 'vue'
import Router from 'vue-router'

import other from '@/router/modules/other.js'
import transition from '@/router/modules/transition.js'
import travel from '@/router/modules/travel.js'
import elementDemo from '@/router/modules/element-demo.js'

Vue.use(Router)

import Home from '@/views/home'
let routerArr = [
  {
    path: '/',
    name: 'Home',
    component: Home
  }
]

routerArr = routerArr.concat(
  other,
  transition,
  travel,
  elementDemo
)

export default new Router({
  // mode: 'history',
  mode: 'hash',
  base: '/',
  routes: routerArr
})